package hotel.base.oversea.vo;

import com.alibaba.fastjson.JSON;
import lombok.Data;

/**
 * @Author lmf
 * @Date 2020/7/6 15:36
 **/
@Data
public class ResultStatusByFlexVo {
    private ResultStatusVo resultStatus;

    public static void main(String[] args){
        String msg="{\n" +
                "    \"ResponseStatus\":{\n" +
                "        \"Timestamp\":\"/Date(1594016445101+0800)/\",\n" +
                "        \"Ack\":\"Success\",\n" +
                "        \"Errors\":[\n" +
                "\n" +
                "        ],\n" +
                "        \"Build\":null,\n" +
                "        \"Version\":\"v1\",\n" +
                "        \"Extension\":[\n" +
                "            {\n" +
                "                \"Id\":\"CLOGGING_TRACE_ID\",\n" +
                "                \"Version\":null,\n" +
                "                \"ContentType\":null,\n" +
                "                \"Value\":\"3134819513854346000\"\n" +
                "            },\n" +
                "            {\n" +
                "                \"Id\":\"RootMessageId\",\n" +
                "                \"Version\":null,\n" +
                "                \"ContentType\":null,\n" +
                "                \"Value\":\"100025527-0a063db3-442782-184840\"\n" +
                "            }\n" +
                "        ]\n" +
                "    },\n" +
                "    \"resultStatus\":{\n" +
                "        \"resultCode\":4,\n" +
                "        \"resultMsg\":\"{MIPHotel:327 酒店ID}:28327959,{MIPRoom:138 错误信息}:{MIPService:039 一般酒店不处理}\"\n" +
                "    },\n" +
                "    \"hotelIDs\":null\n" +
                "}";
        ResultStatusByFlexVo resultStatusByFlexVo= JSON.parseObject(msg,ResultStatusByFlexVo.class);
        System.out.println(resultStatusByFlexVo.toString());
    }
}

